import request from '@/utils/request'

// ======================定时任务=======================

export function platformAll(query) {
  return request({
    url: '/member/platform/job/all',
    method: 'get',
    params: query
  })
}

export function platformDel(id) {
  return request({
    url: `/member/platform/job/del/${id}`,
    method: 'delete'
  })
}

export function platformDetail(id) {
  return request({
    url: `/member/platform/job/detail/${id}`,
    method: 'get'
  })
}

export function platformEdit(data) {
  return request({
    url: '/member/platform/job/edit',
    method: 'post',
    data
  })
}

export function platformUse(data) {
  return request({
    url: '/member/platform/job/use',
    method: 'post',
    data
  })
}

export function platformTrigger(id) {
  return request({
    url: '/notify/platform/notify/trigger/sel',
    method: 'get'
  })
}
